package com.stlm2.dems.entity;

/**
 * 分佣类型
 */
public enum CommissionType {

    Sale(1) {
        public String toString() {
            return "购买分佣";
        }
    };

    private final int val;

    CommissionType(int n) {
        val = n;
    }

    public int getIntValue() {
        return val;
    }

    public static CommissionType getByIntValue(int n) {
        switch (n) {
            case 1:
                return Sale;
            default:
                return null;
        }
    }

}
